package com.weishu.housing.es;

import com.weishu.core.entity.RoomInfoSonEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;
import java.util.List;

@Document(indexName = "fangyuan")
public class FangyuanEsDto {


    private static final long serialVersionUID = 1L;

    @Id
    private String id;
    //房产ID

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private String houseId;

    private String businessId;

    //房源名称
    private String roomName;
    //楼栋名称
    private String  buildingName;
    //房源编号
    private String roomCode;
    //面积
    private Double proportion;
    //朝向
    private Integer direction;
    //租金
    private Double rental;
    //装修风格
    private String decorateStyle;
    //集中式房源-楼层
    private Integer floor;
    //集中式房源-楼层总数
    private Integer floorCount;
    //房源状态
    private Integer status;
    //房源状态名
    private String roomStatus;
    //独立配套
    private String privateFacility;
    //独立配套
    private List<String> privateFacilityList;
    //房源图片url
    private String url;
    //房源发布者
    private String createBy;
    //房源发布时间
    //房源所属楼盘名称
    private String name;
    //房源发布状态
    private Integer publishStatus;
    //房源发布状态(名)
    private String publishStatusName;
    //发布人名称
    private String username;
    //房产类型
    private Integer type;
    //房产类型名
    private String typeName;
    /**
     * 删除标识，0:未删除，1：删除
     */
    private Boolean delFlg;


    private List<String> roomImages;
    //
    private Integer reserve1;
    //
    private Integer reserve2;
    //
    private String reserve3;
    //
    private String reserve4;
    //
    private String reserve5;

    //封面图片
    private String frontCover;

    private Integer recommended;

    private List<RoomInfoSonEntity> roomInfoSonEntities;

    private Long deptId;//部门ID
    private Date createTime;//创建时间
    private String styleId;//房型ID
    private String styleName;// 房型名称
    private Date vacancyDate; //空置时间
    private Date updateTime; //更新时间
    private Date finishDate;//装修时间

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getRoomCode() {
        return roomCode;
    }

    public void setRoomCode(String roomCode) {
        this.roomCode = roomCode;
    }

    public Double getProportion() {
        return proportion;
    }

    public void setProportion(Double proportion) {
        this.proportion = proportion;
    }

    public Integer getDirection() {
        return direction;
    }

    public void setDirection(Integer direction) {
        this.direction = direction;
    }

    public Double getRental() {
        return rental;
    }

    public void setRental(Double rental) {
        this.rental = rental;
    }

    public String getDecorateStyle() {
        return decorateStyle;
    }

    public void setDecorateStyle(String decorateStyle) {
        this.decorateStyle = decorateStyle;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public Integer getFloorCount() {
        return floorCount;
    }

    public void setFloorCount(Integer floorCount) {
        this.floorCount = floorCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(String roomStatus) {
        this.roomStatus = roomStatus;
    }

    public String getPrivateFacility() {
        return privateFacility;
    }

    public void setPrivateFacility(String privateFacility) {
        this.privateFacility = privateFacility;
    }

    public List<String> getPrivateFacilityList() {
        return privateFacilityList;
    }

    public void setPrivateFacilityList(List<String> privateFacilityList) {
        this.privateFacilityList = privateFacilityList;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPublishStatus() {
        return publishStatus;
    }

    public void setPublishStatus(Integer publishStatus) {
        this.publishStatus = publishStatus;
    }

    public String getPublishStatusName() {
        return publishStatusName;
    }

    public void setPublishStatusName(String publishStatusName) {
        this.publishStatusName = publishStatusName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Boolean getDelFlg() {
        return delFlg;
    }

    public void setDelFlg(Boolean delFlg) {
        this.delFlg = delFlg;
    }

    public List<String> getRoomImages() {
        return roomImages;
    }

    public void setRoomImages(List<String> roomImages) {
        this.roomImages = roomImages;
    }

    public Integer getReserve1() {
        return reserve1;
    }

    public void setReserve1(Integer reserve1) {
        this.reserve1 = reserve1;
    }

    public Integer getReserve2() {
        return reserve2;
    }

    public void setReserve2(Integer reserve2) {
        this.reserve2 = reserve2;
    }

    public String getReserve3() {
        return reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3;
    }

    public String getReserve4() {
        return reserve4;
    }

    public void setReserve4(String reserve4) {
        this.reserve4 = reserve4;
    }

    public String getReserve5() {
        return reserve5;
    }

    public void setReserve5(String reserve5) {
        this.reserve5 = reserve5;
    }

    public String getFrontCover() {
        return frontCover;
    }

    public void setFrontCover(String frontCover) {
        this.frontCover = frontCover;
    }

    public Integer getRecommended() {
        return recommended;
    }

    public void setRecommended(Integer recommended) {
        this.recommended = recommended;
    }

    public List<RoomInfoSonEntity> getRoomInfoSonEntities() {
        return roomInfoSonEntities;
    }

    public void setRoomInfoSonEntities(List<RoomInfoSonEntity> roomInfoSonEntities) {
        this.roomInfoSonEntities = roomInfoSonEntities;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStyleId() {
        return styleId;
    }

    public void setStyleId(String styleId) {
        this.styleId = styleId;
    }

    public String getStyleName() {
        return styleName;
    }

    public void setStyleName(String styleName) {
        this.styleName = styleName;
    }

    public Date getVacancyDate() {
        return vacancyDate;
    }

    public void setVacancyDate(Date vacancyDate) {
        this.vacancyDate = vacancyDate;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
    }

    @Override
    public String toString() {
        return "FangyuanEsDto{" +
                "id='" + id + '\'' +
                ", houseId='" + houseId + '\'' +
                ", businessId='" + businessId + '\'' +
                ", roomName='" + roomName + '\'' +
                ", buildingName='" + buildingName + '\'' +
                ", roomCode='" + roomCode + '\'' +
                ", proportion=" + proportion +
                ", direction=" + direction +
                ", rental=" + rental +
                ", decorateStyle='" + decorateStyle + '\'' +
                ", floor=" + floor +
                ", floorCount=" + floorCount +
                ", status=" + status +
                ", roomStatus='" + roomStatus + '\'' +
                ", privateFacility='" + privateFacility + '\'' +
                ", privateFacilityList=" + privateFacilityList +
                ", url='" + url + '\'' +
                ", createBy='" + createBy + '\'' +
                ", name='" + name + '\'' +
                ", publishStatus=" + publishStatus +
                ", publishStatusName='" + publishStatusName + '\'' +
                ", username='" + username + '\'' +
                ", type=" + type +
                ", typeName='" + typeName + '\'' +
                ", delFlg=" + delFlg +
                ", roomImages=" + roomImages +
                ", reserve1=" + reserve1 +
                ", reserve2=" + reserve2 +
                ", reserve3='" + reserve3 + '\'' +
                ", reserve4='" + reserve4 + '\'' +
                ", reserve5='" + reserve5 + '\'' +
                ", frontCover='" + frontCover + '\'' +
                ", recommended=" + recommended +
                ", roomInfoSonEntities=" + roomInfoSonEntities +
                ", deptId=" + deptId +
                ", createTime=" + createTime +
                ", styleId='" + styleId + '\'' +
                ", styleName='" + styleName + '\'' +
                ", vacancyDate=" + vacancyDate +
                ", updateTime=" + updateTime +
                ", finishDate=" + finishDate +
                '}';
    }
}
